package com.lvmama.rhino.mapper;

import com.lvmama.rhino.pojo.PitPV;
import com.lvmama.rhino.pojo.PositionAnalysis;
import com.lvmama.rhino.pojo.TopicFunnelDataQuery;
import com.lvmama.rhino.pojo.TopicFunnelVO;

import java.util.List;

public interface PositionAnalysisMapper {
	// 专题
	List<PositionAnalysis> getAllList(PositionAnalysis topicVO);

	List<PositionAnalysis> queryThemeByCategory(PositionAnalysis positionVO);
	
	List<PositionAnalysis> queryTheBarByCategory(PositionAnalysis positionVO);

	List<PositionAnalysis> queryThemeByDate(PositionAnalysis positionVO);

	PositionAnalysis queryThemePageNumByCategory(PositionAnalysis positionVO);

	// 坑位
	List<PositionAnalysis> queryListByPit(PositionAnalysis positionVO);

	List<PositionAnalysis> queryListByCategory(PositionAnalysis positionVO);
	
	List<PositionAnalysis> queryPitBarByCategory(PositionAnalysis positionVO);
	
	List<PositionAnalysis> queryChartByCategory(PositionAnalysis positionVO);

	List<PositionAnalysis> queryListByDate(PositionAnalysis positionVO);

	PositionAnalysis queryPageNumByCategory(PositionAnalysis positionVO);

	/**
	 * 按类目获取某专题饼状图
	 * @param positionVO
	 * @return
	 */
	List<PitPV> getPitPVByCategory(PositionAnalysis positionVO);
	//表格内可关联专题订单
	List<PitPV> getAllPitPV(PositionAnalysis positionVO);

	List<PitPV> getTopicPVByCode(PositionAnalysis positionVO);
	List<PitPV> getTopicAllPVByCode(PositionAnalysis positionVO);

	/**
	 * 查询专题漏斗
	 * @param query
	 * @return
	 */
	TopicFunnelVO queryTopicFunnel(TopicFunnelDataQuery query);

}
